package com.flyduck.common.constant;

import com.flyduck.common.util.IdUtil;

/**
 * @program: flyduck-platform2
 * @description:
 * @author: flyduck
 * @create: 2021-04-08 17:16
 **/
public class RedisKeyConstant {
    /**
     * 登录用户 redis key prefix
     */
    public static final String LOGIN_TOKEN_KEY = "login_token:";

    /**
     * 验证码 redis key prefix
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_code:";

    public static String getRedisKeyPrefix(String prefix){
        return prefix+ IdUtil.simpleUUID();
    }


}
